package com.trivia.restResponses

class RestResponseUtil {

    def static  getOkResponse() {
       RestResponse response = new RestResponse()
       response.status = ServerResponse.okResponse
       response.description = ServerResponse.responses[ServerResponse.okResponse]
      return response
    }

    def static getErrorResponse() {
       RestResponse response = new RestResponse()
       response.status = ServerResponse.serverErrorResponse
       response.description = ServerResponse.responses[ServerResponse.serverErrorResponse]
       return response
    }

}